package com.nuctech.hardwaredriver.serialport_library.core.codec;

import com.nuctech.hardwaredriver.serialport_library.bean.WriteSerialPortDataBean;

import java.io.IOException;
import java.io.OutputStream;

/**
 * Created by 心魂free on 2019/11/1.
 * <p>
 * 串口协议编码
 */

public interface SerialPortProtocolEncoder {

    //编码
    void encode(OutputStream out, WriteSerialPortDataBean writeSerialPortDataBean) throws IOException;
}
